package com.coderman.business.converter;

import com.coderman.common.model.student.Grade;
import com.coderman.common.vo.student.GradeVO;
import org.springframework.beans.BeanUtils;

/**
 * 用于返回给前端的实体转换器
 * 年级管理
 * @author 文晓平
 * @version 1.0
 * @date 2023-1-9
 */
public class GradeConverter {


    /**
     * 转vo  ,用于返回给前端的实体
     * @return
     */
    public static GradeVO converterToGradeVO(Grade grade){
        GradeVO gradeVO = new GradeVO();
        BeanUtils.copyProperties(grade,gradeVO);
        return gradeVO;
    }
}
